<%@page import="controller.Utils"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%
String Decimal = (String) request.getAttribute("Decimal");
String Hostname = (String) request.getAttribute("Hostname");
String ISP = (String) request.getAttribute("ISP");
String Organization = (String) request.getAttribute("Organization");
String Services = (String) request.getAttribute("Services");
String Type = (String) request.getAttribute("Type");
String Assignment = (String) request.getAttribute("Assignment");
String Country = (String) request.getAttribute("Country");
String Region = (String) request.getAttribute("Region");
String City = (String) request.getAttribute("City");
String Latitude = (String) request.getAttribute("Latitude");
String Longitude = (String) request.getAttribute("Longitude");
String ip = (String) request.getAttribute("ip");
String title="Lookup ip";
String description="A name indicates what we seek. An address indicates where it is. A route indicates how to get there. An IP address serves two principal functions: host or network interface identification and location addressing.";
String keyword="Lookup ip,ip,trackip";
%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keyword %>"/>
	<jsp:param name="link" value="lookup"/>
</jsp:include>

<div id="mainContent">
            	<div class="adv-1 content-center">
                	<%@ include file='/adv/banner.jsp'%>
                </div>
                <div id="leftSideContent">
                	<div id="whoisPage">
                    	<section class="simpleBox box-grey clearafter">
                            <form method="get" action="" class="left">
                            	<input type="text" placeholder="Lookup Ip" name="ip" value="<%=ip!=null?ip:""%>"/>
                                <button type="submit">Lookup Ip</button>
                            </form>
                        </section>                        
                        <section class="blockContent blockBlue">
                        	<h3 class="title">Lookup Ip</h3>
                            <ul class="infoDetail">
                            	<li>
                                	<%@ include file='/adv/note.jsp'%>
                                </li>
                            	<li class="clearafter">
                                	<%
				                     if(ip!=null)
				                     {
				                     %>
				                     <ul class="infoDetail">
				                     	<li class="clearafter">
		                                    <div class="infoLeft">Decimal : </div>
		                                    <div class="infoRight">
		                                        <%=Decimal %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Hostname : </div>
		                                    <div class="infoRight">
		                                        <%=Hostname %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">ISP : </div>
		                                    <div class="infoRight">
		                                        <%=ISP %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Organization : </div>
		                                    <div class="infoRight">
		                                        <%=Organization %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Services : </div>
		                                    <div class="infoRight">
		                                        <%=Services %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Type : </div>
		                                    <div class="infoRight">
		                                        <%=Type %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Assignment : </div>
		                                    <div class="infoRight">
		                                        <%=Assignment %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Country : </div>
		                                    <div class="infoRight">
		                                        <%=Country %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Region : </div>
		                                    <div class="infoRight">
		                                        <%=Region %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">City : </div>
		                                    <div class="infoRight">
		                                        <%=City %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Latitude : </div>
		                                    <div class="infoRight">
		                                        <%=Latitude %>
		                                    </div>
		                                </li>
		                                <li class="clearafter">
		                                    <div class="infoLeft">Longitude : </div>
		                                    <div class="infoRight">
		                                        <%=Longitude %>
		                                    </div>
		                                </li>
		                             </ul>   
				                     <%
				                     }
				                     %>
                                </li>                                
                            </ul>
                        </section>                        
                    </div>
                </div>
                <aside id="rightSideContent">
                	<div class="simpleBox box-blue">
                    	<ul id="sideMenu">
                        	<li><a href="/">Home</a></li>
                            <li><a href="/whois">Whois</a></li>
                            <li><a href="http://www.prapi.net" rel="nofollow">Pagerank</a></li>
                            <li><a href="/myip">Myip</a></li>
                            <li><a href="/contact">Contact us</a></li>
                        </ul>
                    </div>
                    
                </aside>
                <div class="clearbreak"></div>
            </div>


		
<%@ include file='/layout/footer.jsp'%>